/*
 * @Description: 提供资源
 * @Author: iamsmiling
 * @Date: 2021-06-06 16:40:37
 * @LastEditTime: 2021-06-06 23:17:54
 */
import 'dart:ui';

import 'package:credit_business_circle/R/R.dart';
import 'package:flutter/material.dart';

class SourceProviderCard extends StatelessWidget {
  const SourceProviderCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: R.dimen.dp30, bottom: R.dimen.dp20),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            children: [
              Container(
                margin: EdgeInsets.only(right: R.dimen.dp10),
                child: Text(
                  "提供资源",
                  style: TextStyle(
                      fontSize: R.dimen.sp18,
                      fontWeight: FontWeight.w700,
                      foreground: Paint()
                        ..color = R.color.ff222222
                        ..shader = LinearGradient(colors: [
                          R.color.ffe63322,
                          R.color.fffc723f,
                        ]).createShader(
                            Rect.fromLTWH(0, 0, R.dimen.dp70, R.dimen.dp18))),
                ),
              ),
              Container(
                padding: EdgeInsets.symmetric(
                    vertical: R.dimen.dp2, horizontal: R.dimen.dp4),
                decoration: BoxDecoration(
                    color: R.color.fff2f2f2,
                    borderRadius: BorderRadius.circular(R.dimen.sp5)),
                child: Text(
                  "标签",
                  style: TextStyle(
                      fontSize: R.dimen.sp11, color: R.color.ff555555),
                ),
              ),
            ],
          ),
          DefaultTextStyle(
              style: TextStyle(
                  fontSize: R.dimen.sp13, color: R.color.ff555555, height: 2),
              child: Text(
                  "1、用户量：1000万级别\n2、流量载体类型：app、小程序、公众号、网页端口\n3、用户所属区域：全国\n4、可互换广告位：app 1000+广告位24小时滚动播出"))
        ],
      ),
    );
  }
}
